package com.bum.api.core;

import org.apache.log4j.Logger;

import com.asao.baseware.core.DefaultApplication;

public class ApiCoreStarter {
	static Logger	log	= Logger.getLogger(ApiCoreStarter.class);

	@SuppressWarnings("rawtypes")
	static void startApplication() {
		log.info("_/_/_/_/_/_/_/_/_/_/ Starting Bum API Core Application...");
		try {
			@SuppressWarnings("resource")
			DefaultApplication app = new DefaultApplication("config/application.cfg.xml");
			app.setPropertiesLocations(new String[] {
				"/config/application.properties"
			});
			app.start();
			log.info("_/_/_/_/_/_/_/_/_/_/ Bum API Core Application started!");
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		startApplication();
	}
}
